﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FySystem.Net.IOT.RemoteControl
{
    /// <summary>
    /// 远控指令
    /// </summary>
    public class RemoteCommand
    {
        /// <summary>
        /// 通常为设备ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 自定义指令
        /// </summary>
        public string Command { get; set; }

        /// <summary>
        /// 指令参数
        /// </summary>
        public string P { get; set; }

        public RemoteCommand() { }

        public RemoteCommand(string id, string command, string p = "")
        {
            ID = id;
            Command = command;
            P = p;
        }

        public override string ToString()
        {
            return $"ID:{ID},Command:{Command},P:{P}";
        }
    }
}
